package com.battery.system.domain;

import java.math.BigDecimal;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.battery.common.annotation.Excel;
import com.battery.common.core.domain.BaseEntity;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 合作商设置对象 ws_partner_install
 *
 * @author battery
 * @date 2021-01-21
 */
@Table(name = "ws_partner_install")
public class PartnerInstall {
    private static final long serialVersionUID = 1L;

    /**
     * 对应合作商ID
     */
    @Id
    @KeySql(useGeneratedKeys = true)
    private String partnerId;

    /**
     * 提现手续费
     */
    @Excel(name = "提现手续费")
    private BigDecimal txBrokerage;

    /**
     * 提现允许最小金额
     */
    @Excel(name = "提现允许最小金额")
    private BigDecimal txMinPermit;

    /**
     * 身份证正面照
     */
    private String idCardOnPicture;

    /**
     * 身份证反面照
     */
    private String idCardOffPicture;

    /**
     * VIP每单前X分钟免费
     */
    private Integer orderFreeMinute;

    /**
     * 每天免费订单数
     */
    private Integer dailyOrderLimit;

    /**
     * 关联的用户ID
     */
    private String appUserId;

    /**
     * 关联用户的openid
     */
    private String appOpenid;

    /**
     * 真实姓名
     */
    private String trueName;

    /**
     * 收款方银行卡号【银行卡信息】
     */
    private String encBankNo;

    private String appAliid;

    private String appWxid;


    private Integer mBl;


    private Integer borrowCount;


    public Integer getBorrowCount() {
        return borrowCount;
    }

    public void setBorrowCount(Integer borrowCount) {
        this.borrowCount = borrowCount;
    }

    public Integer getmBl() {
        return mBl;
    }

    public void setmBl(Integer mBl) {
        this.mBl = mBl;
    }

    public String getAppAliid() {
        return appAliid;
    }

    public void setAppAliid(String appAliid) {
        this.appAliid = appAliid;
    }

    public String getAppWxid() {
        return appWxid;
    }

    public void setAppWxid(String appWxid) {
        this.appWxid = appWxid;
    }

    /**
     * 收款方开户行 银行卡所在开户行编号【银行卡信息】
     */
    private String bankCode;

    /**
     * 收款方用户名 【银行卡信息】
     */
    private String encTrueName;

    /**
     * 是否删除
     */
    private Integer isDelete;

    public void setPartnerId(String partnerId) {
        this.partnerId = partnerId;
    }

    public String getPartnerId() {
        return partnerId;
    }

    public void setTxBrokerage(BigDecimal txBrokerage) {
        this.txBrokerage = txBrokerage;
    }

    public BigDecimal getTxBrokerage() {
        return txBrokerage;
    }

    public void setTxMinPermit(BigDecimal txMinPermit) {
        this.txMinPermit = txMinPermit;
    }

    public BigDecimal getTxMinPermit() {
        return txMinPermit;
    }

    public void setIdCardOnPicture(String idCardOnPicture) {
        this.idCardOnPicture = idCardOnPicture;
    }

    public String getIdCardOnPicture() {
        return idCardOnPicture;
    }

    public void setIdCardOffPicture(String idCardOffPicture) {
        this.idCardOffPicture = idCardOffPicture;
    }

    public String getIdCardOffPicture() {
        return idCardOffPicture;
    }

    public void setOrderFreeMinute(Integer orderFreeMinute) {
        this.orderFreeMinute = orderFreeMinute;
    }

    public Integer getOrderFreeMinute() {
        return orderFreeMinute;
    }

    public void setDailyOrderLimit(Integer dailyOrderLimit) {
        this.dailyOrderLimit = dailyOrderLimit;
    }

    public Integer getDailyOrderLimit() {
        return dailyOrderLimit;
    }

    public void setAppUserId(String appUserId) {
        this.appUserId = appUserId;
    }

    public String getAppUserId() {
        return appUserId;
    }

    public void setAppOpenid(String appOpenid) {
        this.appOpenid = appOpenid;
    }

    public String getAppOpenid() {
        return appOpenid;
    }

    public void setTrueName(String trueName) {
        this.trueName = trueName;
    }

    public String getTrueName() {
        return trueName;
    }

    public void setEncBankNo(String encBankNo) {
        this.encBankNo = encBankNo;
    }

    public String getEncBankNo() {
        return encBankNo;
    }

    public void setBankCode(String bankCode) {
        this.bankCode = bankCode;
    }

    public String getBankCode() {
        return bankCode;
    }

    public void setEncTrueName(String encTrueName) {
        this.encTrueName = encTrueName;
    }

    public String getEncTrueName() {
        return encTrueName;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("partnerId", getPartnerId())
                .append("txBrokerage", getTxBrokerage())
                .append("txMinPermit", getTxMinPermit())
                .append("idCardOnPicture", getIdCardOnPicture())
                .append("idCardOffPicture", getIdCardOffPicture())
                .append("orderFreeMinute", getOrderFreeMinute())
                .append("dailyOrderLimit", getDailyOrderLimit())
                .append("appUserId", getAppUserId())
                .append("appOpenid", getAppOpenid())
                .append("trueName", getTrueName())
                .append("encBankNo", getEncBankNo())
                .append("bankCode", getBankCode())
                .append("encTrueName", getEncTrueName())
                .append("isDelete", getIsDelete())
                .toString();
    }
}
